var ll = ll || {};
var cur_tool = TAG_BUTTON_HAND;
var logo_onclick = true;
var synch_listener = true; 
var d_z_index=1;
var fontSize = 25;
var fontName = "cocos2d";
var fontColor= "black";
var teach_type = 0;
var gg = gg || {};
gg.d_time = 0.3;
gg.server_url = 'http://121.40.195.52:8080/teach_platform/service';
gg.cur_tool = TAG_BUTTON_HAND;
gg.login_url = null;
//教学模式,0 引导模式 1实战模式
//全局宽度，全局高度
gg.teach_type = TAG_LEAD;
gg.width = 0;
gg.height = 0;
gg.c_p = null;
gg.c_width = 0;
gg.c_height = 0;
gg.d_z_index = 1;
gg.fontSize = 25;
gg.fontName = "cocos2d";
gg.fontColor=cc.color(0,0,0,0);
gg.logo_onclick = true;
gg.synch_listener = true;
gg.init = function(){
	// 初始化固定参数
	this.width = cc.winSize.width;
	this.height = cc.winSize.height;
	this.c_width = this.width * 0.5;
	this.c_height = this.height * 0.5;
	this.c_p = cc.p(this.c_width, this.c_height);
	this.login_url = this.server_url + "login/{1}/{2}";
	this.start_load = false;
	this.play_load = false;
	this.finish_load = false;
	
	gg.expId = 3;
	gg.lastStep = 1;
	gg.expVer = 3;
	gg.version = 'v 1.1'	
}
gg.initTeach = function(){
	// 初始化游戏参数
	gg.flow = new TeachFlow();
	gg.begin_time = new Date();
	gg.score = 0;
	gg.errorStep = 0;// 错误步数
	gg.oneSure = 0;// 一次正确的步数
	gg.errFlag = false;
	gg.totalStep = teach_flow.length;
}